//
//  ScenePrizes+CoreDataClass.m
//  
//
//  Created by fengsh on 2019/1/13.
//
//

#import "ScenePrizes.h"

@implementation ScenePrizes
+ (NSFetchRequest<ScenePrizes *> *)fetchRequest {
    return [NSFetchRequest fetchRequestWithEntityName:@"ScenePrizes"];
}

@dynamic prizeNo;
@dynamic prizeName;
@dynamic prizeContent;
@dynamic prizeInstruction;
@dynamic prize_total_count;
@dynamic prize_nums_per;
@dynamic createTime;
@dynamic prize_pics;
@dynamic prize_remain_count;
@dynamic isAll;
@dynamic deleteflag;

- (NSString *)stateString
{
    if (self.prize_total_count == self.prize_remain_count) {
        return @"未开奖";
    } else if (self.prize_remain_count > 0) {
        return @"部分开奖";
    } else {
        return @"已开奖";
    }
}

@end
